from django.db import models

# Create your models herei.

class KnowledgeDataBase(models.Model):
	name = models.CharField(max_length=200)
	author =  models.CharField(max_length=200)
	
	def __unicode__(self):
		return self.name

class Formula(models.Model):
	knowledgeDataBase = models.ForeignKey(KnowledgeDataBase)
	body = models.CharField(max_length=500)

	def __unicode__(self):
		return self.body


